UPDATE C1_DEPARTMENT SET END_DATE = SYSDATE, DATA_STATE_CODE = '0' WHERE
INSTR(','||:departmentIds||',', ','||DEPARTMENT_ID||',') > 0